<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:70:"C:\wamp\www\projectTwo\public/../application/index\view\index\Css.html";i:1539050078;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>问答系统首页</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="stylesheet" href="./static/index/layui/css/layui.css">
		<link rel="stylesheet" href="./static/index/css/global.css">
		<script src="./static/index/layui/layui.js"></script>
	</head>
	<body>
		<iframe  src='head' scrolling="no" width="100%" height="65px" ></iframe>
		<div class="main layui-clear">
			<div class="wrap">
				<div class="content" style="margin-right:0">
					<div class="fly-tab">

        <span>
          <a href="/" >全部</a>
			<?php if(is_array($problemCate) || $problemCate instanceof \think\Collection || $problemCate instanceof \think\Paginator): $i = 0; $__LIST__ = $problemCate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate): $mod = ($i % 2 );++$i;if($cate['zz_cate_name'] == "CSS"): ?>
          		<a href="../problemCate<?php echo $cate['zz_cate_name']; ?>" class="tab-this problemAll"><?php echo $cate['zz_cate_name']; ?></a>
				<?php else: ?>
				<a href="../problemCate<?php echo $cate['zz_cate_name']; ?>"><?php echo $cate['zz_cate_name']; ?></a>
				<?php endif; endforeach; endif; else: echo "" ;endif; ?>
        </span>

						<form action="" class="fly-search">
							<i class="iconfont icon-sousuo"></i>
							<input class="layui-input" autocomplete="off" placeholder="搜索内容" type="text" name="q">
						</form>
						<a href="Add/add" class="layui-btn jie-add">发布问题</a>
					</div>

					<ul class="fly-list">
						<?php if(!empty($CateList)): if(is_array($CateList) || $CateList instanceof \think\Collection || $CateList instanceof \think\Paginator): $i = 0; $__LIST__ = $CateList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
						<li class="fly-list-li">
							<a href="../user/home.html" class="fly-list-avatar">
								<img src="static/index/images/uer.jpg" alt="">
							</a>
							<h2 class="fly-tip">
								<a href="details/<?php echo $v['zz_problem_id']; ?>"><?php echo $v['zz_problem_tit']; ?></a>
							</h2>
							<p>
								<span><a href=""><?php echo $v['name']; ?></a></span>
								<span><?php echo $v['zz_problem_time']; ?></span>
								<span class="fly-list-hint">
									<i class="iconfont" title="回答">&#xe60c;</i> 317
								</span>
							</p>
						</li>
						<?php endforeach; endif; else: echo "" ;endif; else: ?>
						<li class="fly-list-li">
							<h2 class="fly-tip">
								<a href="add">此分类下暂无问题,可前去提问</a>
							</h2>
						</li>
						<?php endif; ?>
					</ul>

					<!-- <div class="fly-none">并无相关数据</div> -->

					<div style="text-align: center">
						<div class="laypage-main"><span class="laypage-curr">1</span>
							<a href="">2</a>
							<a href="">3</a>
							<a href="">4</a>
							<a href="">5</a><span>…</span>
							<a href="" class="laypage-last" title="尾页">尾页</a>
							<a href="" class="laypage-next">下一页</a>
						</div>
					</div>

				</div>
			</div>
		</div>
	</body>
	<script>
		function problemCate($cateName) {
			alert($cateName);
        }
	</script>

</html>